import {commonParams} from './conf.js'
import axios from 'axios'

export function getRank () {
  const url = '/api/getRank'

  let params = Object.assign([], commonParams, {
    uin: 0,
    needNewCode: 1,
    platform: 'h5',
    format: 'json'
  })

  return axios.get(url, {params: params}).then(function (res) {
    return Promise.resolve(res.data)
  })
}
